package lp.xian.materials.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 质检管理对象 lp_quality
 *
 * @author ruoyi
 * @date 2023-08-15
 */
@Data
public class Quality extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** 质检id */
    private Integer qualityId;

    /** 仓库 */
    @Excel(name = "仓库")
    private Integer warehouseDeptId;

    /** 入库id */
    @Excel(name = "入库id")
    private Integer warehousingRequisitionId;

    /** 入库单号 */
    @Excel(name = "入库单号")
    private String warehousingRequisitionOrder;

    /** 存货名称 */
    @Excel(name = "存货名称")
    private String qualityName;
    /** 存货数量 */
    @Excel(name = "存货数量")
    private Integer qualityNum;


    /** 供应商 */
    @Excel(name = "供应商")
    private Integer supplierId;

    /** 质检类型（0：原料质检 1：成品质检） */
    @Excel(name = "质检类型", readConverterExp = "0=：原料质检,1=：成品质检")
    private Integer qualityType;

    /** 质检状态 */
    @Excel(name = "质检状态")
    private Integer qualityStatus;

    /** 质检日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "质检日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date qualityDate;

    /** 质检人员 */
    @Excel(name = "质检人员")
    private String qualityPerson;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

                .append("qualityId", getQualityId())
                .append("qualityNum", getQualityNum())
                .append("warehouseDeptId", getWarehouseDeptId())
                .append("warehousingRequisitionId", getWarehousingRequisitionId())
                .append("warehousingRequisitionOrder", getWarehousingRequisitionOrder())
                .append("qualityName", getQualityName())
                .append("supplierId", getSupplierId())
                .append("qualityType", getQualityType())
                .append("qualityStatus", getQualityStatus())
                .append("qualityDate", getQualityDate())
                .append("qualityPerson", getQualityPerson())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
